Added test to guard for invalid cell index