Fix api test in admin