Fixed bug in connecting to memory database.
Root Folder test skeleton.
Small Refactorings.