calling emit twice always calls it twice. fixing the test.