Bug 1070845 - [sharedtest] unit test refactoring for new version chai.assert api (rebased)

test_agent used very old version chai library version=0.5.3 in the current version=1.9.1 deepEqua
After update chai and adding chai-as-promises plugin we will rewrite this test like:
```
assert.isRejected(ImageUtils.resizeAndCropToCover(), 'no params').notify(done);
```