add test to make sure tmpofstream handles file creation errors gracefully