Use the function to test state token.