19384 - The puppet agent fails to report resources as managed if they are capitalized

A string interpolation variable was left out in the code and the tests
for this code was too weak to pick up the error

both were improved