Tries to fix randomly failing tests.