add test code for emit
fix tag handling. HandleTagNameMixin::filter_record bang the tag variable.
rename variable to avoid side effect
Merge pull request #1 from harukasan/fix_tag_handling

Fix tag handling