File cache tests

I have been poking around this package due to GSoC. Sharing result if you are interested. Would be glad for feedback anyway.