Updates to "Feature hiera integration"

This fixes some typos and add tests for PR #368.

I might've overdid it with the tests; I wasn't sure how thorough they should be.