more generic test target and adding valgrind