diff --git a/LidarPlugin/Testing/TestHelpers.cxx b/LidarPlugin/Testing/TestHelpers.cxx
index cde0b78b04f6126ce772c1ededd00dc32c4a22d7..a04d4059ea5b6cb795efba15ac9a49e12513ccf4 100644
--- a/LidarPlugin/Testing/TestHelpers.cxx
+++ b/LidarPlugin/Testing/TestHelpers.cxx
@@ -457,11 +457,11 @@ int testLidarReader(vtkLidarReader *reader,
 //-----------------------------------------------------------------------------
 int testLidarStream(vtkLidarStream *stream,
                     bool preSend,
-                    double preSendSpeed,
-                    double speed,
+                    double vtkNotUsed(preSendSpeed),
+                    double vtkNotUsed(speed),
                     const std::string &pcapFileName,
                     const std::string &referenceFileName,
-                    bool testLastFrame)
+                    bool vtkNotUsed(testLastFrame))
 {
   return testLidarStream(stream, pcapFileName, referenceFileName, preSend);
 }
@@ -472,6 +472,12 @@ int testLidarStream(vtkLidarStream *stream,
                     const std::string& referenceFileName,
                     bool preSend)
 {
+  if(!stream)
+  {
+    std::cout << "Stream is nullptr" << std::endl;
+    return 1;
+  }
+
   int retVal = 0;
   // get VTP file name from the reference file
   std::vector<std::string> referenceFilesList;
@@ -490,6 +496,12 @@ int testLidarStream(vtkLidarStream *stream,
 
   auto interpreter = vtkLidarPacketInterpreter::SafeDownCast(stream->GetInterpreter());
 
+  if(!interpreter)
+  {
+    std::cout << "Interpreter is nullptr" << std::endl;
+    return 1;
+  }
+
   // Case of live correction : Packet are sent a first time to save calibration
   if (preSend)
   {
@@ -535,7 +547,7 @@ int SendAndTestAllFrames(vtkLidarStream *stream, vtkLidarPacketInterpreter* inte
 
   // Packets are sent, if a new frame is ready it's compare to the associated reference frame
   std::cout << "Sending data... " << std::endl;
-  int idFrame = 0;
+  unsigned int idFrame = 0;
 
   std::function<void()> testFrame = [&](){
     // A new frame is ready
@@ -575,7 +587,7 @@ int SendAndTestAllFrames(vtkLidarStream *stream, vtkLidarPacketInterpreter* inte
   // check for a potential uncomplete last frame.
   if (idFrame < referenceFilesList.size())
    {
-     interpreter->SplitFrame();
+     interpreter->SplitFrame(true);
 
      vtkPolyData* currentFrame = interpreter->GetLastFrameAvailable();
      vtkPolyData* currentReference = GetCurrentReference(referenceFilesList, idFrame);