Unit test new authentication