feature(cloudfunc) add tests