Fix bug in error detection in classad unit tests.

It seems hitting EOF in a C++ getline() can set the fail bit of the
input stream.