Fixed tests to work with the yubikey code.
Added test for auth.