moved code from cfg_spec to parser_spec and removed pending tests