Fix test failing on newer versions of click.