added spec for getting table by index.
added features for finding label