Fix unittests: IF doc, default minimum needs, map hash.