unit test for issue #37
Merge pull request #41 from corux/master

Unit test for BUG 402 / #37