Fix compilation error in tests (#13446)

Change-Id: Id96c59710173a57a9a7c990a6d8bc9ff49e75906