[test][sections] Fix error and warning.

Error: wrong number of parameters passed into sectionalize()
Warning: comparison of signed and unsigned integer.