adding more cookie tests, adjust the remove func