add unit test for issue 106