fixing bug and adding a default test for the repository class