flag API tests with @medium

MediaWiki core now complains when one use API tests wich are not flagged
with a long timeout (@group medium or @group large).

Bug: 61875
Change-Id: I88a1a5449e0f10c8647915442b3b902d6c57954c