Added tests and warning when region gets truncated