Added tests for 'registerFormat' functionality.