Write modelfiles  for models used in unittests

So far a quick and dirty solution.

The general problem is, that I would like to avoid the hdf5 dependency by default.
So far all models are saved and overwrite each time.
I will clean this up soon, such everything works automatically.

So far one have to set the flag and link against HDF5 by hand in the CMakeLists