Added test for the issue #9.
Fixes issue #9.