moving user agent initialization (mail service, leap_session, app_config) to inside setup so it doesn't happen in the tests