added tests for #38
Merge pull request #39 from sebastiankirsch/master

Added tests for Pull Request #38