Added test for #279
Merge pull request #284 from nkt/fix_279

Added test for #279