hd, tl -> head, tail: adapt testcases