tests: parameterize --valgrind option