testcases for issue #2350