add tests and documentation for FileView