Fix for contains conditional

Object has no method `include`, use `match` instead. Added tests.