Add tests for Application#injectTestHelper.

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).

These are tests for existing functionality (as mentioned in #3567).