Add read/write chunk header test
Fix minor issues

 - Rename.
 - Better print messages.