[test] add cases for the cookies API