Added calls to invalidate_cache
ERT-418: Changed logic for IES iter count
ERT-418 Added minor test