In order to facilitate generation of session state in these tests, move some helpers from SessionBuilderTest.js into global namespace of the test page