Fixing browser unit tests