token and tokenize unit tests