add more tests and documentation for multiple formats