Add tests for explicit and implicit format determination.