Fix compiler warning in unit test code.