Wrote some tests but the tests are untested.
Signed-off-by: Franz Sattler <sattler@ad.dkfz-heidelberg.de>