Add test stub and documentation for register_format() and friends