Fixed a race condition in pivot tests that caused them to fail on saucelabs.