Added __contains__. Added some tests.