Hugh McMaster : regedit/tests: Use a helper function to open registry keys.