added support for links in schema.
simplied schema tests.