Test: Cleanup some cleaning code
Tests: Add test for check out of given branch during clone