This test and error don't match up -- assuming the test is correct shouldn't the error message read `One or more layers must be defined`?