Improved data checking for all of the Structure system tests.
Before looping over the structural data, the number of lines in the real file and the newly
generated file are compared. This avoids the situation whereby an empty file is produced,
accidentally allowing the test to pass.
........