Refined tweet moderation functions and added test