Simplify case sorting by actually sorting by the array of Case objects rather than sorting the array of CaseExecutions.
Simplify CaseBehavior interface by including the test class instance on the CaseExecution context object.