Fixed the issue of test failure

```javascript
var noop = function () {};
. . .
done = noop;
```