added functional tests for layout