Positive test of packet header parser.
Negative packet header test.
Catch IO errors too.
Positive test for file header.
Negative parsefileheader test.