1) Go to the Content page for your course and find the test you wish to add media to.
2) Click on the action link button next to the test name and select Edit the Test.
3) Click on Question Settings located on the right side of the page.
4) In the Test Question Setting go to 2. Images, Files, and External Links and make sure that everything in this section is checked
5) Click Submit.