add unit tests from issue #93