Bugfix #199
Adding a test
Merge pull request #200 from philipnilsson/fix-199

Bugfix #199