Fixed the build error in routing tests.

Review: https://reviews.apache.org/r/24902