test case for repository (not finished)