Add tests for eventSubProcess