added a test case for issue #121