Vid 1976 unit tests

Adding some unit tests for media galleries. 
And if you do, a test that no <div class="caption"> is rendered for that media element?