fixed some valgrind sanity tests