finished the tests for word counter