[No review required] Fix valgrind tests