Added file support for tests

![selfie-0](http://i.imgur.com/KZcGj3L.gif)