Made domObserver tests work with PhantomJS. Added to automatic tests