Add MutationObserver polyfill
Some cleanups and test setup harmonisation