Uts for PMA_server_privileges and fix UT error