diff --git a/tests/lib/filesystem.php b/tests/lib/filesystem.php
index 050dfa5280d565f4b52514a8611d4539693a5afa..4239033551d978f8c518ef9bb26c162bb192aeae 100644
--- a/tests/lib/filesystem.php
+++ b/tests/lib/filesystem.php
@@ -79,7 +79,10 @@ class Test_Filesystem extends UnitTestCase {
 
 		OC_Filesystem::mount('OC_Filestorage_Temporary', array(), '/');
 
-		OC_Filesystem::init('');
+		$rootView=new OC_FilesystemView('');
+		$rootView->mkdir('/'.$user);
+		$rootView->mkdir('/'.$user.'/files');
+
 		OC_Filesystem::file_put_contents('/foo', 'foo');
 		OC_Filesystem::mkdir('/bar');
 		OC_Filesystem::file_put_contents('/bar//foo', 'foo');