Add unit test for browser detection