Hugh McMaster : reg/tests: Use a helper function to delete registry keys.