Hg integration test