Maybe you could have tested it like this:

```js
equal(i, 2, "Function was called twice");
```