test for Account.authenticate