diff --git a/src/python/OBis/obis/dm/data_mgmt_test.py b/src/python/OBis/obis/dm/data_mgmt_test.py
index 17e317ef2afa73f00ebf35b9a4265e6a1e7284cb..1240523115c3e5e44d99b7ef8fe7dc9394051260 100644
--- a/src/python/OBis/obis/dm/data_mgmt_test.py
+++ b/src/python/OBis/obis/dm/data_mgmt_test.py
@@ -31,5 +31,13 @@ def test_locate_command():
 
 
 def test_normal_use_case(shared_dm, tmpdir):
+    # The folder should not be a git repo at first
+    result = data_mgmt.run_shell(['git', '-C', str(tmpdir), 'status', ])
+    assert result.returncode == 128
+
     result = shared_dm.init_data(str(tmpdir))
     assert result.returncode == 0
+
+    # The folder should be a git repo now
+    result = data_mgmt.run_shell(['git', '-C', str(tmpdir), 'status', str(tmpdir)])
+    assert result.returncode == 0