Added basic test for WordFrequency