Binary Composite-hypothesis Testing