Proactively free memory after test completion