Fixing the build.

Prefix updates happens async on config
save, and the UT did not properly wait for
them.