test rebuilding of cons lists