Add errors tests to tokenizer