Test for fancy indexing