Adding back the get_mcs_level function for the php cartridge tests [merge]