Fix compile error in test project

(cherry picked from commit e8788748fd47c22912a381b6dab8c86da1caf9d7)