Use Cursor::read_all() in tests.
Add Table::num_rows().
Test Table::num_rows().