Fix random background test failure.