Fixed a bug in the test suite introduced by the previous revision.
The bug was that the optimisation warning flag for the steepest descent and coordinate descent
optimisation algorithms was set to 'Maximum number of iterations reached' as optimisation was
terminated early. This is now caught.