ActGrammar test added and bug fixed