Hypothesis testing by using quantized observations