added valgrind test