Add unit testing helper for MacroConstantsGenerator