Fix file formats tests
Add some functions to Options class and add tests