Added comparison operators and tests

Please enter the commit message for your changes. Lines starting