Fix test module lookup
Implement localRepo.ensureClean
Implement localRepo.ensureFetched