Estimating the subgroup and testing for treatment effect in a post-hoc analysis of a clinical trial with a biomarker