Adapt built-in constant folding tests for GS