Fix test failures on slower machines