test: Simplify the code by unifying op_num and op_type.

The global variable t_wp_op is no longer needed.