Improve test reliability by using localMirror

The localMirror should not change content while the tests are running,
while the remote repository from which it is cloned may change during
the test.