(minimality_test): Add and use show_plots parameter. (find_f): Handle the case of several candidates for f.