Add assorted test suite from mercurial.