fix the clone command and ensure it is fully tested