Removed method getRule() from AbstractGrammarTest