[tests] createDirectoryDoc test + refactoring of big query