add AuthFactory testing