core: fix broken tests
core: fix mouse move event handling when running on firefox