Added tests for Layout