tests for token path