file headers and error test