Improve folder test.