Made the test for lengths actually a test [ci-skip]
Implement the n_tables function