Fixed up version of browser and added tests.