tests for nqp::index with three arguments

partially stolen/adapted from roast