added test case for issue #1521