Add format unit tests