Unit test for GetToken()