Valgrind test script