Fixes randomly randomly failing tests.