add some Authenticate unit tests