Added test for issue #4
Fixes issue #4