pkg/cloudcfg: fix tests