Study of Optimal Adaptive Rule in Testing Problem