Testing for codon optimality