Adding new unit tests for table APIs, adding extra test helpers