Adding unit tests for `file`