Added a test for the forecast example code.