added test for token
added tests for auth token