remove leak to global of tests/lib/wsapi.js. Hmm.