fix broken tests
chromecast: fix undefined document when testing
media control: fix container switching test