Added interfaces and tests for region and region generator.