Fix #4451 (EditorCommandHanler unit test failures)

Fix #4451 (EditorCommandHandlers unit tests failures)

Removed a call to closeTestWindow in the midst of the testrun.