Tests for __getitem__