Add tests for media helper.