add Format.asMap and test unit