Added test and additions to the clone command