tests/events.cpp: support processing via cainteoir::document