diff --git a/Control/xAODRootAccess/test/ut_xaodrootaccess_tevent_copy_test.cxx b/Control/xAODRootAccess/test/ut_xaodrootaccess_tevent_copy_test.cxx
index 176b00d2264aad33110541804e79f81adcda6375..ab48f41cf999076f10826830b37f342b6e70f753 100644
--- a/Control/xAODRootAccess/test/ut_xaodrootaccess_tevent_copy_test.cxx
+++ b/Control/xAODRootAccess/test/ut_xaodrootaccess_tevent_copy_test.cxx
@@ -17,7 +17,7 @@
 #include "xAODRootAccess/tools/ReturnCheck.h"
 
 /// Helper macro
-#define CHECK( CONTEXT, EXP )                                        \
+#define TEST_CHECK( CONTEXT, EXP )                                        \
    do {                                                              \
       const StatusCode result = EXP;                          \
       if( ! result.isSuccess() ) {                                   \
@@ -36,12 +36,12 @@ int main() {
    static const char* APP_NAME = "ut_xaodrootaccess_tevent_copy_test";
 
    // Initialise the environment:
-   CHECK( APP_NAME, xAOD::Init() );
+   TEST_CHECK( APP_NAME, xAOD::Init() );
 
    // Test the copying in class access mode:
-   CHECK( APP_NAME, copyObjects( xAOD::TEvent::kClassAccess ) );
+   TEST_CHECK( APP_NAME, copyObjects( xAOD::TEvent::kClassAccess ) );
    // Test the copying in athena access mode:
-   CHECK( APP_NAME, copyObjects( xAOD::TEvent::kAthenaAccess ) );
+   TEST_CHECK( APP_NAME, copyObjects( xAOD::TEvent::kAthenaAccess ) );
 
    // Return gracefully:
    return 0;
diff --git a/PhysicsAnalysis/AnalysisCommon/PileupReweighting/test/ut_PRWDataWeightExample_test.cxx b/PhysicsAnalysis/AnalysisCommon/PileupReweighting/test/ut_PRWDataWeightExample_test.cxx
index 73715427be37b81e0bbfde5e4033820863a95c53..a7d73a13345fec6527d2377a9e9521b9d2583147 100644
--- a/PhysicsAnalysis/AnalysisCommon/PileupReweighting/test/ut_PRWDataWeightExample_test.cxx
+++ b/PhysicsAnalysis/AnalysisCommon/PileupReweighting/test/ut_PRWDataWeightExample_test.cxx
@@ -34,11 +34,11 @@ int main() {
                                       "dev/PileupReweighting/ilumicalc_histograms_HLT_e12_lhvloose_nod0_L1EM10VH_297730-304494_OflLumi-13TeV-005.root:HLT_e12_lhvloose_nod0_L1EM10VH",
                                       "dev/PileupReweighting/ilumicalc_histograms_HLT_e24_lhvloose_nod0_L1EM20VH_297730-304494_OflLumi-13TeV-005.root:HLT_e24_lhvloose_nod0_L1EM20VH"}; //feed with lc files for each trigger
   
-  prwTool.setProperty( "DataScaleFactor", 1/1.09 );
-  prwTool.setProperty( "LumiCalcFiles" , lcFiles );
-  //prwTool.setProperty( "OutputLevel", 1 ); //VERBOSE OUTPUT LEVEL
+  ANA_CHECK(prwTool.setProperty( "DataScaleFactor", 1/1.09 ));
+  ANA_CHECK(prwTool.setProperty( "LumiCalcFiles" , lcFiles ));
+  //ANA_CHECK(prwTool.setProperty( "OutputLevel", 1 )); //VERBOSE OUTPUT LEVEL
 
-  prwTool.initialize();
+  ANA_CHECK(prwTool.initialize());
   
   std::cout << prwTool->expert()->GetDataWeight( 297730 , "HLT_e12_lhvloose_nod0_L1EM10VH", 4) << std::endl;
   if(! ( fabs(prwTool->expert()->GetDataWeight( 297730 , "HLT_e12_lhvloose_nod0_L1EM10VH", 4)  - 8797.7) < 1e-3 ) ) {
diff --git a/Reconstruction/MET/METUtilities/util/example_rebuildTrackMET.cxx b/Reconstruction/MET/METUtilities/util/example_rebuildTrackMET.cxx
index df8b54eacc983f3a0bd64aa532854eac14a41dc0..8dbe1635e5befa19ca694a99ed8eb1db62d6f58d 100644
--- a/Reconstruction/MET/METUtilities/util/example_rebuildTrackMET.cxx
+++ b/Reconstruction/MET/METUtilities/util/example_rebuildTrackMET.cxx
@@ -265,7 +265,7 @@ int main( int argc, char* argv[]) {std::cout << __PRETTY_FUNCTION__ << std::endl
   }
 
 #ifndef XAOD_STANDALONE // POOL::TEvent should handle this when changing events
-  app->finalize();
+  ANA_CHECK( app->finalize() );
 #endif
 
   xAOD::IOStats::instance().stats().printSmartSlimmingBranchList();