clear memory after a set of tests