Add tests for exceding array bounds