Add unit tests about equality.