tests/events: make the compression-based tests easier to specify