Add test cases for repository and subuser commands