Script generation tests