unit tests for layout_editor