Add tests for Application#injectTestHelpers.

Adds tests to ensure that the `onInjectHelpers` callbacks are ran, and
ensures that the tests are run in a consistent state (prior to the
`cleanup` changes here we would leak `ajaxStart` and `ajaxStop` event
handlers).