add test to sprintf to cover metadata support

I was migrating config files to the new metadata feature.
After looking at the tests I saw we did not have any test to cover "@metadata" and sprintf's interpolation.