add failing test
test regexp after inner emit
Merge pull request #2 from stagas/fix-emit

Fix emit