add new tests for token cache