test that we dont acces index out of bounds