fixing issue 221
added a testcase for github issue 221
Merge pull request #248 from MagLev/dikors/issue221

fix for issue221