Add test to authenticate (incomplete)