test some code slices