Test and repo fixes

Added tests to assert Repo's validity. Fixed issue with Data models not
being found by the Hibernate entity manager.