Callbacks: Disabling a callback should prevent firing

Thanks to @TheDistantSea for the report!

Fixes gh-1790
Closes gh-1643
(cherry picked from commit bc1cb122db30be034b3da84ee2546c86e2a5268f)
Event: Fully clean up events in unit test

Closes gh-1685
(cherry picked from commit 4467ed606ab0a9b28ed495e682576910937fa5e0)
Manipulation: improve test for data-URI

Some environments do not support data-uri in "src" attribute of script element.
Mitigate it with equality assertion