Fix compile error in test code in CI builds.