Add checkExecutionResult function to simplify engine tests