Semiparametric combinations of two dependent tests