Moved monte_carlo to tests and updated the script to support changes