Dependency Resolution

Moved dependency loop into sub class SchemaDependencies, added test file to support testing dependency resolution.