Finish to test every nonterminal