Use compare_error_messages for input tests