Test operate file between unlink() and close()