[tests] Fix format-to-string errors.