Fixed remaining broken test by using jasmine spy instead of sinon spy.