Added test for repository and repository class