tests: clean up memory when done