fix table cell parser
set cell type properly
add tests for table parsers