Added quit in testscenario for valgrind