Study a passage, hide it, and type it from memory. Diacritics and common hamza-spelling variants are forgiven - what matters is the letters.