Finish remaining test cases for repository_tool.py functions.