added test for bug #4310