Test and fix yesno function.