Added shouldMockFiles flag. This makes it possible to either setup a set of mock files using the 'files' property or by using writeFile/createDir methods. Did also add corresponding tests