fix environment-dependent red tests