testing generate length