TODO finish up RepositoryTest