add undocumented --no-retries to make testing easier
use O_CREAT when open()ing header file for saving
add some more test fixtures, etc
add tests around cli header files