[tests] createFileDoc test + refactoring of big query