add test cases for layout