Test and fixes for evaluate_inputs.