multiple test running conflict fix
diff --git a/src/main/.DS_Store b/src/main/.DS_Store
index 16a3460..4f51b81 100644
--- a/src/main/.DS_Store
+++ b/src/main/.DS_Store
Binary files differ
diff --git a/src/test/.DS_Store b/src/test/.DS_Store
index b5e4a6e..0bfe70f 100644
--- a/src/test/.DS_Store
+++ b/src/test/.DS_Store
Binary files differ
diff --git a/src/test/java/.DS_Store b/src/test/java/.DS_Store
index f388377..b99d2f1 100644
--- a/src/test/java/.DS_Store
+++ b/src/test/java/.DS_Store
Binary files differ
diff --git a/src/test/java/CollectionRewriteTest.java b/src/test/java/CollectionRewriteTest.java
index c1c88b1..2649d1e 100644
--- a/src/test/java/CollectionRewriteTest.java
+++ b/src/test/java/CollectionRewriteTest.java
@@ -6,6 +6,7 @@
 import de.ids_mannheim.korap.resource.rewrite.CollectionConstraint;
 import de.ids_mannheim.korap.resource.rewrite.RewriteHandler;
 import de.ids_mannheim.korap.utils.JsonUtils;
+import org.junit.AfterClass;
 import org.junit.BeforeClass;
 
 /**
@@ -25,6 +26,12 @@
         config = BeanConfiguration.getBeans().getConfiguration();
     }
 
+    @AfterClass
+    public static void close() {
+        BeanConfiguration.closeApplication();
+    }
+
+
     //    @Test
     public void testCollectionNodeRemoveCorpusIdNoErrors() {
         RewriteHandler handler = new RewriteHandler(config);
diff --git a/src/test/java/FoundryRewriteTest.java b/src/test/java/FoundryRewriteTest.java
index ff19ec2..6d23964 100644
--- a/src/test/java/FoundryRewriteTest.java
+++ b/src/test/java/FoundryRewriteTest.java
@@ -6,6 +6,7 @@
 import de.ids_mannheim.korap.resource.rewrite.FoundryInject;
 import de.ids_mannheim.korap.resource.rewrite.RewriteHandler;
 import de.ids_mannheim.korap.utils.JsonUtils;
+import org.junit.AfterClass;
 import org.junit.BeforeClass;
 import org.junit.Test;
 
@@ -30,6 +31,11 @@
         config = BeanConfiguration.getBeans().getConfiguration();
     }
 
+    @AfterClass
+    public static void close() {
+        BeanConfiguration.closeApplication();
+    }
+
     @Test
     public void testSimpleFoundryAddThrowsNoError() {
         RewriteHandler processor = new RewriteHandler(config);