Added topline_flag_num parser and tests