NFA to DFA test and some fixes.