move TestCase junk out of GrammarAST