add test for wrong-indexing error