add patch test, small improvements to table data format