tests for token