Wrote some tests for the compare/clone/to_str methods.