Add tests for fix_e401()'s failure avoidance