[build] Fixed failing test.

(cherry picked from commit 65015baca14caf4eb2978a15edff648797f8b06b)