Fix tests

Fixed a global leak of `document` in jsonp tests and removed an old test that checked that the ws api functions correctly, since the ws api is removed.