Fixes EditorOptionHandler test

Fixes the EditorOptionHandler test by cleaning up the PreferencesManager in the test window.

to @redmunds