Added tests for media_js