added test for bug #251