Check tests with valgrind