Simple wrapper to allow testing file io