Asymptotically optimal tests for multinomial distribution