unit test for folder manager