[fix] fixed shouldEmitData so the tests using it wouldn't make the test suite hang