How do are lesson order determined?

I am currently running Spanish level 5 and Danish level 2. I have selected 5 words per day for Danish and 15 words per day for Spanish.

The lesson types seem to come at random; maybe learn-words a couple of times, a speed test maybe a learn-with-locals if available but sometimes I don’t see one type for several days. Is there supposed to be a specified order or are they supposed to come at random?

Additional, the daily goal seems to be achieved whether I have completed learn-new-words or not. Should the daily goal not chime one the set amount of words have been learned?

Thanks
J