Added code to test token authentication