Set upstream on clone
Add tests