In tests, use our existing functions for generating variants.