Add a few unit test for issue #102