Add some tests for browser emulation