add unit tests to validate issue #76