fix #3934 (GetPrimaryModName() doesn't return name + version)

also adjust test_UnitSync to not call deprecated functions / add some more tests