token test code