cleans up repository tests
adds support for validations
Merge branch 'adds_validations'