Merge "Add a test for timewait crash."