Merge "Use git snapshots of the tests if are on git" into release-4-6