media api tests