Add test for reading invalid file descriptors.