Adding hg integration test