Issue #163: fixed unit test