scaffolding nock read and write file