Close Window Test

Add a test for window closing.