Hugh McMaster : reg/tests: Use a helper function to add registry values.