Add a test to make sure that events end up in the query engine