allow injection of processTweet function