Fixed valgrind output on leaking test