Fix test by stubbing file exists