Adds event publication tests.