unit tests for media search api