Testing the repository functionality