add unit tests to confirm #9