Removed a few bugs and included tests for SPOT forecasting.