Analyzing a set of genes using phylogenetics and tests for selection