diff --git a/tests/modules/testPythia8.cpp b/tests/modules/testPythia8.cpp
index 2ad4b1edbaefc603e8dcc42287685199e0b28e4f..8e178affc3f7c26c5a34df8caf2777386dba8d24 100644
--- a/tests/modules/testPythia8.cpp
+++ b/tests/modules/testPythia8.cpp
@@ -27,8 +27,6 @@ TEST_CASE("Pythia", "[processes]") {
 
   SECTION("linking pythia") {
     using namespace Pythia8;
-    using std::cout;
-    using std::endl;
 
     // Generator. Process selection. LHC initialization. Histogram.
     Pythia pythia;
@@ -50,15 +48,15 @@ TEST_CASE("Pythia", "[processes]") {
     event.append(321, 1, 0, 0, 0., 0., 100., sqrt(pz * pz + m * m), m);
 
     if (!pythia.next())
-      cout << "decay failed!" << endl;
+      CORSIKA_LOG_CRITICAL("decay failed!");
     else
-      cout << "particles after decay: " << event.size() << endl;
+      CORSIKA_LOG_DEBUG("particles after decay: {}", event.size());
     event.list();
 
     // loop over final state
     for (int i = 0; i < pythia.event.size(); ++i)
       if (pythia.event[i].isFinal()) {
-        cout << "particle: id=" << pythia.event[i].id() << endl;
+        CORSIKA_LOG_DEBUG("particle: id= {}", pythia.event[i].id());
       }
   }