There are two threads which help you debug your create vectorizer codes and the dataset codes.
Both codes written by you were incorrect hence one of the unittest catched the error. Remember passing a test cell or able to run a model doesn’t mean your codes are correct always.
Your error clearly states the vocabulary it is looking for doesn’t exist with the codes you wrote.