added test case for layout with inline child