Added test case from issue #3051