add unit test for issue 94.