Added 'failure' tests for standalone nonterminals

Also tweaked a bit terminal tests. I should consider doing certain
inspection and overhaul of error messages and test file naming.
Will get back to this after all nonterminal tests pass or so.