VE-387: Unit tests for ApiMediaSearch

DO NOT MERGE