add check_only option for qs.is_valid_id
add tests for match_section