Adds tests for `file` module & gets rid of truncate.