Add tests for the layout setting