fdo#75741: Write test for this.

Change-Id: Ibd3a2efe0a195b7c402572b0efb5c03183df9cf8
fdo#75741: Re-implement CompileNameFormula for formula groups.

Change-Id: I57e1e464ac5f7abc10ce5ea5752e036ddb6cf6d7