restructed and added more test for TableOrderDataController