Adding hashCode implementation for Ambiguity and fixing one of the junit tests.