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

var spy needs for access in promise.then function line 532 and 567.