The accuracy of weak lensing simulations