Unit tests until event based gateway