valgrind & tests