Minor: fix unit test and get getMedias request URL