Add test case to ensure out-of-bounds setting of items doesn't corrupt input