Metadata test

Add a test for media extraction. We want to make sure we're filling out media bag correctly during the reading.

TODO: add a test with mulitple images, to make sure the keys in the media bag are being associated consistently with the right images.