Put the setup code for the test of duplicate settings hashes in the
test itself, per @eac's suggestion.