added some test cases for predictive grammar analyzer