Updated the UnitTestGrammar class to test most of the private methods in
the Grammar.Java class.