completed the unit test for repositories