Testing the accuracy of the Hydro-PM approximation in numerical simulations of the Lyman-alpha forest