Adds config option to allow permissive netrc files

This test wasn't working at all, if you try to break the relevant code (so it does not raise an error in this case), then it just pass, there would be no assertions happened.