Fix compiler warnings in test program.