freeing stuff in tests