(tests): Fix tests to pass locally, on saucelabs and browserstack
WIP