Removed equalTo test and added equals operator