Add a test_valgrind target for memory check