Adds new test case for issue #6072