Added a trivial unit test for _edit

Since I'm about to start screwing with it, at least put a *little*
sanity-checking in first.

Fixed an initialization bug in DeriveName.