Vid 1976 unit tests

Adding some unit tests for media galleries. 
:+1: