I think requireApp basically opens the file in the context of the app. I believe it's just needed for files outside of the normal JS folders of the app, but I could be wrong.

I wish we had a comment here =/ https://github.com/mozilla-b2g/gaia/blob/master/dev_apps/test-agent/common/test/helper.js#L40