test cases for equality and comparisons