Update test runner to use sendEvent delegate throughout