diff --git a/Data/Baseline/OTB/Files/ioTuMetaDataKeyTest.txt b/Data/Baseline/OTB/Files/ioTuMetaDataKeyTest.txt
index d4a93664c09dbf7fb25fd145f6cf1ceb7aa3a23c..4135f61fa7b7d1a436256d0ff8c5d6c4f2e7c51a 100644
--- a/Data/Baseline/OTB/Files/ioTuMetaDataKeyTest.txt
+++ b/Data/Baseline/OTB/Files/ioTuMetaDataKeyTest.txt
@@ -1,5 +1,4 @@
 mytime : 2009-08-10T10:30:08.142149Z
-mytime : 2009-08-10T10:30:08.142149Z
-First try size: 512
-Second try size: 264
-Third try size: 264
\ No newline at end of file
+First try size: 608
+Second try size: 312
+Third try size: 312
diff --git a/Modules/Core/Metadata/test/otbImageMetadataTest.cxx b/Modules/Core/Metadata/test/otbImageMetadataTest.cxx
index 2eabc05320020d3a6937a95d21a2f99535ad56da..e263b1bc27739864ad19e58bfd415dd45bc95508 100644
--- a/Modules/Core/Metadata/test/otbImageMetadataTest.cxx
+++ b/Modules/Core/Metadata/test/otbImageMetadataTest.cxx
@@ -63,20 +63,9 @@ void otbMetadataKeyTest(char* argv[])
   std::ofstream outfile(outFileName);
 
   MetaData::Time mytime;
-  char buffer[] = "2009-08-10T10:30:08.142149Z";
 
   std::string bufferStr("2009-08-10T10:30:08.142149Z");
 
-  try
-  {
-    mytime = boost::lexical_cast<MetaData::Time>(buffer);
-  }
-  catch(boost::bad_lexical_cast&)
-  {
-    outfile << "Bad cast into MetaData::Time\n";
-  }
-  outfile << "mytime : "<< mytime << "\n";
-
   try
   {
     mytime = Utils::LexicalCast<MetaData::Time,std::string>(bufferStr, std::string("T"));