Replaced all extract(x, idxs) with x[idxs] in test scripts and examples