Fix hanging test.