Add tests for add_format()