tests: fix collect_with_kwargs for polars nightly
#2527
Merged
collect_with_kwargs for polars nightly
#2527