equals refactor to meet EqualsVerifier standards