Isolate in a common file all the standard boilerplate in tests, i.e. the import of the test framework and the guestfs module (including the import path hack needed for the latter). Thanks to Vít Ondruch for the precious hints and suggestions.