Testing isEqual() functionality