write test cases for table info