generate token length option, test case added for utils