Override equals() to make testing more thorough.