Speedup testand correct idoc=>medoc media_search() instead of search
Speedup test and correct idoc=>medoc gaia_search() instead of search()