added test for bug #245