kmf-media-api-test refactoring to unify waiting timeouts in async
operations

Change-Id: Icbec07040233f213ac4d544cd3b014fc6224798e