anchor.diff:                                                           where ev1.eventparam2 = ev2.eventparam2
                                                            within 60 seconds; ", 1),
   
  -    TemplateVars = rivus_cep_parser:parse(Tokens),
  +    StmtClauses = rivus_cep_parser:parse(Tokens),
       ?assertEqual({ok,[{pattern1},
   		      {[{event1,eventparam1},
   			{event2,eventparam2},
  
positive.code:                                                          where ev1.eventparam2 = ev2.eventparam2
                                                           within 60 seconds; ", 1),
  
      TemplateVars = rivus_cep_parser:parse(Tokens),
      ?assertEqual({ok,[{correlation1},
  		      {[{event1,eventparam1},
  			{event2,eventparam2},
  
negative.code: 			{event2,eventparam4}]},
  		      {pattern, {[event1,event2]}},
  		      {{eq,{event1,eventparam2},{event2,eventparam2}}},
  		      {60}]}, StmtClauses ),
  
      {ok, [StmtName, SelectClause, FromClause, WhereClause, WithinClause]} = StmtClauses,
  
      {IsPattern, _FromClause} = case FromClause of
  				   {pattern, Events} -> {true, Events};
  