Fixed getTweets so that it returns tweets even if no end character is used.
Updated unittests and fixed various bugs.