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
() => done() - worked, but this path through any params - good o not 
```
check(ImageUtils.resizeAndCropToCover(self.inputBlob, 10, 10)) 
check(ImageUtils.resizeAndCropToCover('not a blob', 10, 10)) 
```
I suggest 2 step solution:
1. Upgrade chai
2. Rework this test with chai-as-promise