Add unit test to check for error on invalid enum in schema