added layout editor test code