Conjugacy test for pure periodic elements