add tests for missing format and implemented format_main method with all specs passing