Add tests for TokenError in tokenizer