Tear down test structures, helps with valgrind