writing tests for layout core.