fix broken test window.matchMedia