test for bug 1591