add test of cons