Written unit tests for the EntityRepositoryBase which is now fully covered by unit tests