Make sure out-of-bounds exceptions are thrown.