Tests for indexing of integer vectors; fixed issue #1 for integers