Removed redundent check, added the magic methods __contains__
Added appropriate tests, now using a fixture