Add tests to validate reference format.
Merge branch 'spec-schema' into spec-schema-v2
Get schema v2 validating.