add unit test for issue #107