Fix _create_repo function
Add test for command "add"