Fixed ArrayIndexTest to report errors