Writing a test for tfidf.