add failing test for environment patching