Implement the RunContext test helper class