add tests for cloning corrupted repositories