refactor for dependency injection
adds tests for tweeting bad words and fixes word-checking