Fix getLayoutMode tests