Its pretty easy, you just have to zone her off. Dealing damage to Illaoi will reduce the spirits duration.
This, of course is what will separate the good Illaoi's from the bad, when and where they choose to use their test of spirit. I have played as or against Illaoi several games as well and have not had that many problems with her.
Pro tip: lining up your damage abilities so that they hit the spirit AND the actual target makes for good damage. Ergo, if you are fighting against one, and she gets your spirit, try harassing her AFTER she blows an ability. Specifically, her Q.
Also, dont forget, if you cant fight her, or zone her off, just run out of range. yeah, you become a vessel, but the tentacle slaps are easy to dodge and you only need to destroy 3 of them to end the curse early. AND by running out of range, you forgo her free damage.