Fixing bugs when parsing hashtags. Writing tests