TST: tests for GH4502, consistency in ix assignments, but ok in master

closes #4502 (is ok in master though), this are just tests