Sequential Design of Experiments for Hypothesis Testing