Return a changes dictionary for git.latest in test=true mode

Addresses #11595