Add checking section titles as expected to the tests

Count child nodes correctly... note the use of countchildren
due to len(child) working differently in lxml.objectify than
with standard lxml.