Add tests for Format.