Small refactor for Editor tests