Make tests work in browser