Unit test and token autentication.