Add tailmatch testcase for cookie