[media] Fixed assertion style
code style fix
[media] Added tests for pre-composed path
[media] Fixed extension processing