diff --git a/reactome/src/test/java/lcsb/mapviewer/reactome/ReactomeTestFunctions.java b/reactome/src/test/java/lcsb/mapviewer/reactome/ReactomeTestFunctions.java
index aa526b7c5652c30b646b7a80db2548b219eea714..277d349526f5a08f9cf2b7a6e7d3898216456942 100644
--- a/reactome/src/test/java/lcsb/mapviewer/reactome/ReactomeTestFunctions.java
+++ b/reactome/src/test/java/lcsb/mapviewer/reactome/ReactomeTestFunctions.java
@@ -51,12 +51,7 @@ import lcsb.mapviewer.reactome.utils.ReactomeQueryUtil;
 
 @Transactional
 @Rollback(false)
-@ContextConfiguration(locations = { "/applicationContext-annotation.xml",
-    "/applicationContext-reactome.xml",
-    "/applicationContext-persist.xml",
-    "/test-applicationContext.xml",
-    "/test-dataSource.xml",
-})
+@ContextConfiguration(classes = SpringReactomeTestConfig.class)
 @RunWith(SpringJUnit4ClassRunner.class)
 public abstract class ReactomeTestFunctions {
   private Logger logger = Logger.getLogger(ReactomeTestFunctions.class);
diff --git a/reactome/src/test/java/lcsb/mapviewer/reactome/SpringReactomeTestConfig.java b/reactome/src/test/java/lcsb/mapviewer/reactome/SpringReactomeTestConfig.java
new file mode 100644
index 0000000000000000000000000000000000000000..f502938425bdf9f4e8b2f57e008c05a80262eb26
--- /dev/null
+++ b/reactome/src/test/java/lcsb/mapviewer/reactome/SpringReactomeTestConfig.java
@@ -0,0 +1,18 @@
+package lcsb.mapviewer.reactome;
+
+import lcsb.mapviewer.persist.SpringPersistConfig;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+import org.springframework.security.crypto.password.NoOpPasswordEncoder;
+
+@Configuration
+@Import({SpringPersistConfig.class, SpringReactomeConfig.class})
+public class SpringReactomeTestConfig {
+
+  @Bean
+  public NoOpPasswordEncoder passwordEncoder() {
+    return (NoOpPasswordEncoder) NoOpPasswordEncoder.getInstance();
+  }
+
+}
diff --git a/reactome/src/test/resources/test-applicationContext.xml b/reactome/src/test/resources/test-applicationContext.xml
deleted file mode 100644
index 9d15139c8c5b9880e0ab616b9c28030e5a028d63..0000000000000000000000000000000000000000
--- a/reactome/src/test/resources/test-applicationContext.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<beans xmlns="http://www.springframework.org/schema/beans"
-	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-	xmlns:tx="http://www.springframework.org/schema/tx"
-	xmlns:context="http://www.springframework.org/schema/context"
-	xsi:schemaLocation="http://www.springframework.org/schema/beans
-		http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
-		http://www.springframework.org/schema/tx 
-		http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
-		http://www.springframework.org/schema/context 
-		http://www.springframework.org/schema/context/spring-context-4.0.xsd">
-
-	<!-- Testing Password Encoder used for hashing passwords -->
-	<bean id="PasswordEncoder" class="org.springframework.security.crypto.password.NoOpPasswordEncoder"/>
-
-</beans>
diff --git a/reactome/src/test/resources/test-dataSource.xml b/reactome/src/test/resources/test-dataSource.xml
deleted file mode 100644
index 6374a21fdec63810545b6ae8bb7faeba53704645..0000000000000000000000000000000000000000
--- a/reactome/src/test/resources/test-dataSource.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-<beans xmlns="http://www.springframework.org/schema/beans"
-	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-	xmlns:tx="http://www.springframework.org/schema/tx"
-	xmlns:context="http://www.springframework.org/schema/context"
-	xsi:schemaLocation="http://www.springframework.org/schema/beans
-		http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
-		http://www.springframework.org/schema/tx 
-		http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
-		http://www.springframework.org/schema/context 
-		http://www.springframework.org/schema/context/spring-context-4.0.xsd">
-
-	<context:property-placeholder
-		ignore-resource-not-found="true"
-		location="classpath:test-db.properties,file:/etc/minerva/test-db.properties" />
-
-
-	<!-- Data Source Declaration -->
-	<bean id="DataSource"
-		class="com.mchange.v2.c3p0.ComboPooledDataSource"
-		destroy-method="close">
-		<property name="driverClass" value="org.postgresql.Driver" />
-		<property name="jdbcUrl" value="${database.uri}" />
-		<property name="user" value="${database.username}" />
-		<property name="password" value="${database.password}" />
-		<property name="maxPoolSize" value="90" />
-		<property name="maxStatements" value="5" />
-		<property name="minPoolSize" value="5" />
-	</bean>
-
-    <bean id="DbInit" class="lcsb.mapviewer.persist.CustomDatabasePopulator">
-        <property name="dataSource"><ref bean="DataSource"/></property>
-    </bean>
-    
-	<bean id="startupScripts" class="org.springframework.jdbc.datasource.init.DataSourceInitializer">
-        <property name="dataSource"><ref bean="DataSource"/></property>
-        <property name="databasePopulator"><ref bean="DbInit"/></property>
-        <property name="enabled" value="true"/>
-    </bean>
-
-</beans>
diff --git a/reactome/src/test/resources/test-db.properties b/reactome/src/test/resources/test-db.properties
deleted file mode 100644
index e1edfb39acf73ef0ad8d928ba01941bb4d87ac72..0000000000000000000000000000000000000000
--- a/reactome/src/test/resources/test-db.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-database.uri=jdbc:postgresql://localhost:5432/map_viewer
-database.username=map_viewer
-database.password=123qweasdzxc
\ No newline at end of file