refactor tests for media parser and resources