Here you assume the S3Provider, which is wrong.  Also, you should put all the Filer instantiation code into a separate module, since it needs to handle reading from the env, etc.  You probably want:

```
var filesystem = require('../../lib/filesystem.js');
...
var fs = filesystem.create();
```