Adding helper function to find tablet.

And unit tests for it, that check it works even with bad cells.