add Test for freeLayout and codeEditor