Add tests for Event.flatMap and Event.filter