Added proper test cases and implemented timed tweet gathering.