Fix test script to handle dfa for glib