Thermal fluctuations in magnetic nanoparticles: numerical testing of Langevin approach