Adding terminate all rule and test case to parse it