You can temporarily revert this one-liner change to see errors caused by the problematic .contains implementation by PhantomJS.
(Some of the test cases will fail because of it - but only with PhantomJS, if you run it in the browser, it will still pass.)