Fix git fetch of test repo.
Add tests.