'Test out of bounds previtem() with mode=raise.'

def test_first_raise(self, neighborlist):

    neighborlist._mode = usertypes.NeighborList.Modes.exception
    neighborlist.firstitem()
    assert (neighborlist._idx == 0)
    with pytest.raises(IndexError):
        neighborlist.previtem()
    assert (neighborlist._idx == 0)
