TST: add tests for GH6274