Mark API tests as 'medium'

MediaWiki core now requires API tests to be at least in the medium
PHPUnit group as to raise the timeout to an acceptable level.

Change-Id: I09a0bdb92f638dec74847a9ccc9d5e25dc7a3471