Fix leaking python process
Fix broken test

PhantomJS doesn't seem to support overriding Error and TypeError, so we won't run that test.
Fix test timing out due to missing support for CustomEvent
Fix output of tests to not give exception on success
Add test/ci-test.sh to allow Travis to run tests in both node and phantom