Refactored test framework
Finished CompensateEndEvent test