repository test cases