fix a test that might have been causing unpredictable failures on ci