free test window variables before closing the test window