Move title length check after name check

Don't check the number of titles in the spec until
after the individual sections are checked for. This
makes it easier to find which section is missing
by having an assertIn failure for the name instead
of an assertEqual failure on the length.

Change-Id: I0761c0a2f70d53c7be204ef76d7256902f900caa
Merge "Move title length check after name check"