TESTS: regression test added for #581