diff --git a/integration-tests/run.sh b/integration-tests/run.sh
index 68c92c7099861d387320277599cc6f0e9ae8c845..3ad880ee07fded78ae63f5db07097def0c6ee0aa 100755
--- a/integration-tests/run.sh
+++ b/integration-tests/run.sh
@@ -61,7 +61,7 @@ function run_lsof {
 # Tries to find PostgreSQL executable and returns its absolute path.
 # If not found, then exits the script with an appropriate error message.
 function run_psql {
-	for prg in psql psql82 psql83; do
+	for prg in psql psql84 psql83; do
 		exe=`locate_file $prg $BIN_PATHS`
 		if [ $exe ]; then
 			echo $exe
@@ -209,7 +209,7 @@ function install_openbis_server {
     local install_openbis=$1
     psql_cmd=`run_psql`
     $psql_cmd -U postgres -c "drop database $DATABASE"
-    $psql_cmd -U postgres -c "create database $DATABASE with owner $USER encoding = 'UNICODE'"
+    $psql_cmd -U postgres -c "create database $DATABASE with owner $USER template = template0 encoding = 'UNICODE'"
     $psql_cmd -U $USER -d $DATABASE -f $TEMPLATE/$OPENBIS_SERVER_NAME/test_database.sql
 
     if [ $install_openbis == "true" ]; then
@@ -851,4 +851,4 @@ else
 	 shift
     done
     integration_tests $install_dss $install_dmv $install_openbis $use_local_source $reinstall_all
-fi
\ No newline at end of file
+fi
diff --git a/integration-tests/templates/datastore_server1/etc/service.properties b/integration-tests/templates/datastore_server1/etc/service.properties
index ac4f9c0e9373cb41c2d11ca204c82f70a9c1cc1c..453a5d89d23d5f54c043457defdf029ea58042e1 100644
--- a/integration-tests/templates/datastore_server1/etc/service.properties
+++ b/integration-tests/templates/datastore_server1/etc/service.properties
@@ -4,6 +4,9 @@ data-store-server-code = DSS1
 # The root directory of the data store
 storeroot-dir = ../data/main-store
 
+# The directory where the command queue file is located; defaults to storeroot-dir 
+commandqueue-dir =
+
 # Port
 port = 8444
 
diff --git a/integration-tests/templates/datastore_server2/etc/service.properties b/integration-tests/templates/datastore_server2/etc/service.properties
index 37a19ccc5c0616205896e61daffae7f3bc089c49..e1c52e1c1e274e2e82bfae1d6b91e1bd864a6c5b 100644
--- a/integration-tests/templates/datastore_server2/etc/service.properties
+++ b/integration-tests/templates/datastore_server2/etc/service.properties
@@ -4,6 +4,9 @@ data-store-server-code = DSS2
 # The root directory of the data store
 storeroot-dir = ../data/main-store
 
+# The directory where the command queue file is located; defaults to storeroot-dir 
+commandqueue-dir =
+
 # Port
 port = 8445
 
diff --git a/integration-tests/templates/openBIS-server/openbis.conf b/integration-tests/templates/openBIS-server/openbis.conf
index 405635ea4843838d3b3bbf0e1d2ea6fc46dd8a4a..44a0aba8027bf26f613b052523dd923312691e2b 100644
--- a/integration-tests/templates/openBIS-server/openbis.conf
+++ b/integration-tests/templates/openBIS-server/openbis.conf
@@ -15,4 +15,4 @@ JAVA_OPTS=${JAVA_OPTS:=-server -Djavax.net.ssl.trustStore=openBIS.keystore}
 #
 # Memory options to the JRE
 #
-JAVA_MEM_OPTS="-Xmx2048m -Xms512m -XX:MaxPermSize=256m"
+JAVA_MEM_OPTS="-Xmx512m -Xms512m -XX:MaxPermSize=256m"