'Test getitem().'

def test_getitem(self, neighborlist):

    assert (neighborlist.getitem(2) == 5)
    assert (neighborlist._idx == 4)
    neighborlist.reset()
    assert (neighborlist.getitem((-2)) == 1)
    assert (neighborlist._idx == 0)
