It's possible for the test to pass without the pointermove handler ever being triggered.  You should add an assertion here that detected_pointertypes["pointermove"] == true.