Add tests for layout

Layout tests can be added in layouttests.xml. A file is constructed from
    ODF fragments and the loaded and layed out document is checked.
    Only a few simple dimensions for are currently checked, more tests will follow.