improved test for bug 3172