0.1.7 - fix array out of bounds

fix test for index causing loop to go out of array bounds