[feature/auth-refactor] Fix auth tests to use mock objects correctly

PHPBB3-9734