Creating unit tests for NSFileManager and NSThread