test: Add a test for regions, traits, and variance.

Closes #12470.

[breaking-change]