Created events in the #run was a hash instead of `LogStash::Event`
Events were created with data from the `fields` key instead of the
`_source` key.
Adding test coverage to validate the type of the created event.
Now use `docinfo` option to enable the metadata feature.