Implement execute in tests using Cadence events.

Closes #147.