added test case for issue #1523