Override Engine.emit_stream for tests before input plguin start