Added test for issue #18

Added test for issue #18