Added test case for issue #3191