Editor tests

Add a test for window closing.