The two tests “test_error_for_smallest_if_min_more_than_max” and “test_error_for_largest_if_min_more_than_max” are both calling smallest.
I created a PR for the latter to call largest as advertised, and such an important change should be discussed on the forum so that the community can weigh in. Please do.