Fix test suite

- Mimic return values for `https.request' more consistently.
- Define the helper functions in `helpers.lua', not the tests.
- Always call `avandu.login' with arguments.