test value of i.