Make generator tests respect HL_TARGET