You should be able to do:

```js
tearDown(function() {
  loader.options.modules = true;
});
```