refactor tests for IndexedPiece

-looks a little cleaner this way
finish implementing and testing IndexedPiece.add_index
Merge remote-tracking branch 'origin/visX-devel' into visX-devel