Testing the least-squares Monte Carlo method for the evaluation of capital requirements in life insurance