adding edge cases tests for tfidf