all tests passing after moving reference property under references
added tests for entity repository