Fix compiler warning in test program