Port Saucelabs test from v1 to v2
Fix browser tests

By porting code from Node.js runner to browser runner, to handle should
fail tests.