Improving validation of hg integration test