test for token refactored