Fix unittests: IF doc, default minimum needs, map hash.
Merge pull request #1419 from ismailsunni/unit_test

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