Add a helper function to test, as well as some Jasmine configuration.