Add a unit test to make sure refs in schemas are valid