Add a new input-validation error test; fix bug in compare_partial_recursive.