fixing tests in browser