Make tests work in browser as well