more tests, countsegments doesn't work