Add test expect throws exception when no layouts
Add throwing exception with no layouts