test(cloudfunc) buildFromJSON