add mark given keyword
add when keyword
add then keyword
change given,when,then block at the end of patterns list