better regression test for #6653