Test: fixed issues with MutationObserver tests in PhantomJS (including one evil workaround).