add some doctests for compare methods