test for token