diff --git a/test/unitTests/app/history/HistoryControllerTest.php b/test/unitTests/app/history/HistoryControllerTest.php
index f1e323a19477721dc8d974856303cb5a0c23d0af..359946909c32102fd86dd039ec2c3ed1b3513f21 100755
--- a/test/unitTests/app/history/HistoryControllerTest.php
+++ b/test/unitTests/app/history/HistoryControllerTest.php
@@ -72,11 +72,13 @@ class HistoryControllerTest extends TestCase
 
     public function testRealDelete(){
         
-        //get notes
+        //get last notes
         $getResId = DatabaseModel::select([
             'select'    => ['res_id'],
             'table'     => ['res_letterbox'],
-            'limit'     => 1,
+            'where'     => ['subject = ?','status = ?'],
+            'data'      => ['Breaking News : Superman is alive - PHP unit', 'DEL'],
+            'order_by'  => ['res_id DESC']
         ]);
 
         $resID['resId'] = $getResId[0]['res_id'];
diff --git a/test/unitTests/app/note/NoteControllerTest.php b/test/unitTests/app/note/NoteControllerTest.php
index b64349e2a5a4b368a600c8f1af94daa330a8dcd3..24587b5fdf419bfb1f7280b489bce44004162ad0 100644
--- a/test/unitTests/app/note/NoteControllerTest.php
+++ b/test/unitTests/app/note/NoteControllerTest.php
@@ -16,11 +16,13 @@ class NoteControllerTest extends TestCase
 
     public function testCreate()
     {
-        //get notes
+        //get last notes
         $getResId = DatabaseModel::select([
             'select'    => ['res_id'],
             'table'     => ['res_letterbox'],
-            'limit'     => 1,
+            'where'     => ['subject = ?','status = ?'],
+            'data'      => ['Breaking News : Superman is alive - PHP unit', 'DEL'],
+            'order_by'  => ['res_id DESC']
         ]);
 
         $resID['resId'] = $getResId[0]['res_id'];
diff --git a/test/unitTests/app/resource/ResControllerTest.php b/test/unitTests/app/resource/ResControllerTest.php
index a9023ae7ef0f80f4aad05c6b33865c19805a84b0..0ba86eacaeea99d46710932b0f7313ccb3610ad0 100755
--- a/test/unitTests/app/resource/ResControllerTest.php
+++ b/test/unitTests/app/resource/ResControllerTest.php
@@ -27,7 +27,7 @@ class ResControllerTest extends TestCase
         $data = [
             [
                 'column'    => 'subject',
-                'value'     => 'Breaking News : Superman is alive',
+                'value'     => 'Breaking News : Superman is alive - PHP unit',
                 'type'      => 'string',
             ],
             [
@@ -63,7 +63,7 @@ class ResControllerTest extends TestCase
 
         $this->assertInternalType('array', $res);
 
-        $this->assertSame('Breaking News : Superman is alive', $res['subject']);
+        $this->assertSame('Breaking News : Superman is alive - PHP unit', $res['subject']);
         $this->assertSame(null, $res['title']);
         $this->assertSame(null, $res['description']);
         $this->assertSame(102, $res['type_id']);