TST: add tests for GH 6572