refactor User and Training hashCode and Equals methods with the appropriate unit tests