Fixed failing unit tests for mediaTest