Add equals and hashcode to compare profile implementations