added test for bug 639