tests: valgrind: Rebuild tests before running them