Can you please make this:

```
this.sinon.stub(MessageManager, 'onHashChange', function() {
.....
```

So that it gets set back to its original value after the test?