add tests for format conversions