FxA web flow (bug 1033694)

I don't like test code in public view code. Why is this necessary? Can't you add something like this? https://github.com/mozilla/spartacus/blob/master/server/templates/index.html#L19 or add a method like this https://github.com/mozilla/spartacus/blob/master/tests/helpers.js#L220 and call it at the top of the test?