Remove more warnings in test programs