add testcase for issue #694

This matches unit test that has been provided in issue #694