Fix the callback and close test.