refactor User auth tests