Repair the test_resources.py unit test after MediaStorage API change