Test the repository functionalities