allow written files to be closed after writing
include unittests

I/O unittests went missing during the migration to git, so we're
bringing them back