Test for #50
Fixes #50
Merge pull request #79 from ovatsus/master

Fix for #50