Fix first param in  __eq__ impl to be self

first parameter of a method should be named 'self'. Added a
test case as well

Change-Id: I03a993a9f84af354dcf7e358ed0e5e126eda48af