Feature/sections primaryfix

Added new unit tests for add section and update existing unit tests cases
so the dict reg_section is not the primary section, shouldn't it be false here anyway?