Fixed check for worst cases. Added in test for it before first solve of
main. Need to implement it in the real place now.