AGJS-89 - Refactor authentication tests