Added a test for accessing out-of-bounds elements