added test for bug #251
Merge pull request #195 from tkrille/bug-gh251

added test for bug #251