test a layout