Added test case to issue #2384.