test for close and linger