Add test case for repository command