Fix Layout and RenderingSection. Add test for Layout and Section rendering