test: unset HGRCPATH and simple clean-up

Current use of `HGRCPATH` conflicts with creation of `$HOME/.hgrc` according to mercurial semantics, so make that compatible.