Tests for #duplicate.
Small change to use_connection that only adds the destination_directory when using destination.