Added unit tests and the logic for the tweet call