Add Format tests and benchmarks