maint: add write_scratch_string helper for testing...
We had a pattern where we wanted to routinely write scratch strings to disk,
on the load path, so we could reference them later. This extracts that into a
helper, and starts to use it in tests that should follow that pattern.
Reviewed-By: Dan Bode <dan@puppetlabs.com>