Refactor helper method
Add a helper method to base TestCase class
Add some missing DocBlock
Finish to write unit tests for media helpers