add test demonstrating a transform function that publishes an event, initial impl idea.