Added regedit unit test, a couple minor changes to regedit.

7 files changed