refactored TestWordCounter: pulled out a helper method to make the tests clearer
refactored TestWordCounter: pulled out a helper method to make the tests clearer

hellonico/wordcram,danbernier/WordCram,hellonico/wordcram,danbernier/WordCram,danbernier/WordCram