Make a test more robust

The multi-branch test occasionally picked the wrong change's commit
to inspect, resulting in a flakey test.  Try to pick the right one
instead.

Change-Id: I1cefa1b96cac9e5a8fdfe0f4de4704202dd6d072