File descriptor tests