fix seg fault on smit-clone if auth error

+ test clone