test and stub for mediaresource map