Joe Root is pleased with the mental resilience his side showed during their Test match summer fixtures against South Africa and Windies.