test for the repository functionality