 -- Test14: Limit achieved logging to ROOT with info.
 INSERT INTO LOGDATA.LOGS (LEVEL_ID, MESSAGE) VALUES (3, 'Test14: Limit achieved logging to ROOT with info');
 SET EXPECTED = 'TRUE';
-DELETE FROM LOGS
-  WHERE MESSAGE LIKE 'LG001. Cascade call limit achieve, for LOG: Cascade call for "LOGGING" enters w%';
-CALL LOGGING(1, 4, 61);
-IF (RAISED_LG001 = FALSE) THEN
- INSERT INTO LOGDATA.LOGS (LEVEL_ID, MESSAGE) VALUES (3, 'Exception not raised');
-ELSE
- INSERT INTO LOGDATA.LOGS (LEVEL_ID, MESSAGE) VALUES (5, 'Exception raised LG001');
-END IF;
-SET RAISED_LG001 = FALSE;
-SELECT 'TRUE' INTO ACTUAL
-  FROM LOGS
-  WHERE MESSAGE LIKE 'LG001. Cascade call limit achieve, for LOG: Cascade call for "LOGGING" enters w%';
+SET CASCADE = MIN_61A;
+CALL LOGGING(1, 4, CASCADE);
+IF (RAISED_LG001 = FALSE) THEN
+ INSERT INTO LOGDATA.LOGS (LEVEL_ID, MESSAGE) VALUES (3, 'Exception not raised LG001');
+ELSE
+ INSERT INTO LOGDATA.LOGS (LEVEL_ID, MESSAGE) VALUES (5, 'Exception raised LG001');
+END IF;
+SET RAISED_LG001 = FALSE;
+SELECT 'TRUE' INTO ACTUAL
+  FROM LOGS
+  WHERE MESSAGE LIKE 'LG001. Cascade call limit achieved, for LOG: Cascade call for "LOGGING" enters w%'
+  AND DATE = (SELECT MAX(DATE) FROM LOGDATA.LOGS);
 IF (EXPECTED <> ACTUAL) THEN
  INSERT INTO LOGDATA.LOGS (LEVEL_ID, MESSAGE) VALUES (2, 'Different MESSAGE ' || EXPECTED || ' - ' || ACTUAL);
 END IF;

-- Test8: Cascade call limit with error.
INSERT INTO LOGDATA.LOGS (LEVEL_ID, MESSAGE) VALUES (3, 'Test8: Cascade call limit with error');
SET EXPECTED = 'TRUE';
CALL LOGGING(1, 2, 63);
IF (RAISED_724 = FALSE) THEN
 INSERT INTO LOGDATA.LOGS (LEVEL_ID, MESSAGE) VALUES (3, 'Exception not raised');
ELSE
 INSERT INTO LOGDATA.LOGS (LEVEL_ID, MESSAGE) VALUES (5, 'Exception raised 54038');
END IF;

-- Test4: Cascade call limit with fatal.
INSERT INTO LOGDATA.LOGS (LEVEL_ID, MESSAGE) VALUES (3, 'Test4: Cascade call limit with fatal');
SET EXPECTED = 'TRUE';
SET CASCADE = MIN_63;
CALL LOGGING(1, 1, CASCADE);
IF (RAISED_724 = FALSE) THEN
 INSERT INTO LOGDATA.LOGS (LEVEL_ID, MESSAGE) VALUES (3, 'Exception not raised LG001');
ELSE
 INSERT INTO LOGDATA.LOGS (LEVEL_ID, MESSAGE) VALUES (5, 'Exception raised 54038');
END IF;
