added test case for issue #1760, minor cleanup