[#2127] Fixed bug in smsi_msiAdmAppendToTopOfCoreRE and added unit test