covnerting tests to use emitters for async testing