Move remote repo manipulations to separate test file
Factor out shared code
Test full cleanup of units