Assessing temporal variations in diversification rates from phylogenies: estimation and hypothesis testing