move mock code to testing package; add mock FS