Add basic schema tests and an error message
Fixed two tests failing on wrong check
Added one more test for invalid downgrade definitions
Add error messages for some invalid schema definitions