add format_code to test