Fix tests for missing mapi field and PHP 5.3