Add file unit tests