tests for function WordCount()