Added tests for BagOfWords and Spellcheck