Implement equality for test object