test case for issue #157