attempt to make test more deterministic
fixed leak in IndexOperator, simplified IndexOperator API