Added tests for authorize.js.