fix rightContentTest and LayoutManagerTest