change:move data logic to model(TableUnit)
add:unit test for tableUnit