Fix redundant/missing error handling

Removed redundant header size check. Don't attempt to read data if an error is returned from setting up header information.
Removed extra test method

Fail test instead of panicking if unable to open test file