Fix broken unit test build in gerrit-common

Change-Id: I3580aea7142d5bc78ce521a0ffb568b86d094449