added test case for repository