add tests for table validation