Fix TestHgBackend tests.

Committing to the repository requires a user.

Fixes #667.