Issue #42: unit tests