Add test for setting undefined layout.