Test leaked file descriptors