is_one2one implemented + unittests

is_one2one function implemented with some elementary unittests.
Im a little unclear if this is a useful or
meaningful tool.  Have to create more unittests.