Add a test for GetThreadExitCode.