Updated remove-repo function and updated a test to test it