fixing #239 (without changing chai.js)
simplified code
additional test finds incomplete implementation
declaring variable only once
aborting loop on finding
Merge pull request #244 from leider/fix_for_contains

fixing #239 (without changing chai.js)