Add tests for getFolders