WP-1224: Fix test script in test/web_root/mediaContent.html

Generalise media type cases in the test suit.

Jira issue: WP-1224