[test] Add tests for car and cdr variants