update tests to use the new login method [AGIOS-35]