Added test for issue #4

commit 9f88e28 seems to fix #4 - this commit provides a regression test for it