fixed test for default=None check in get_numeric_code