Add a test.
Fix ReportSystemError and ReportWinError tests.
Document ThrowSystemError and ThrowWinError.