mmaking tests work in browser