Added test case for issue #6950