Advanced tests

Add tests to check that:

 * the titles are correctly formatted
 * the declarations for figure inclusion are not outnumbering the actual figure number