[test] Make test_undo_api less random
The order in which hooks are run is not predictable if they have the
same 'order' attribute, which is the case for SetOwnershipHook and
SetInitialStateHook. So don't assume in_state will be set before
created_by.
TACHES
======
-- écrire objet stocke/manipule les données
-- extraire tests de chaîne de caractère
* utiliser sqlite
* écrire fonction prend chemin en argument et renvoie contenu
* extraire tests (chaîne de caractère) de spec
* utiliser yams pour schéma