bug 5825: (follow-up) add regression test