wrote a test for bug 862024