fixed some test case errors
changed from deprecated `contains` to `in`
Merge pull request #357 from tanmaykm/contains

Moved from `contains` to `in` and fixed a few tests