Remove os.environ from error handling test page

Chain: #2226 #2227 #2228 #2229 #2230 #2231 #2232 #2233