Fix close test