fixing test on the browser