add hittest unimplemented codes
implement hittest query routine, test if hit curr idx