Fix parameters when running tests with valgrind.