Added eq operator and added tests.