Fix API authenticator tests