Added equals and hashCode methods to default invocation handler

Change-Id: I3284becdc31defb4f996b3280d5449af60490ace