add more index error tests for #5

The index error tests seemed to be missing a few code paths, so I added them.