Task 54279: Backport media new-style tests

Checked out tests/ at 658d86b (initial port) and backported ot 3.6.1
Merge pull request #1 from stacic/backportTests

Task 54279: Backport media new-style tests