Response-adaptive randomization using power function of hypothesis testing