Added test for table data gateway