Test for nth Power