Added testEquals method