Fixed bug in browser tests