Fix failing tests

Fix failing tests in FireFox, IE9, and iOS Safari.

How To Test
-------------

```bash
$ git fetch && git checkout fix_failing_tests
$ ./init.sh
$ grunt qa
```

All tests should pass. Open the tests (http://0.0.0.0:9200/_test.runner.html) in Chrome, FireFox, IE9, and Safari on iOS. All tests should pass in those browsers.

@timmccall-wf @patkujawa-wf @robbecker-wf 
Fixed in mocking now.