refactor expected exception in TweetTest