Fixed broken tests due to some PhantomJS / connect issues.