Fixed tests for mercurial query_revision