FIX: 529 didn't clean up in failure case
improve repo presence check in test framework
Merge pull request #394 from reneme/fix-test_529

FIX: Test 529 didn't Clean Up Properly