Remove useless params in phpunit.xml
Centralize tests for media helpers
Refactor unit tests for media helpers a bit
Add some more unit tests for media helpers