add tests for cdr and cons