Unit test for == and != operators