Test for WordCount extension method