Fix test for #429
Cross-platform addEventListener and removeEventListener