Update and fix API authenticator tests