added tests for list/pair/nil sanity checking.