Added test case to verify fix on issue #16.